Woocommerce\Pagarme\Controller\Gateways\AbstractGateway A

Total Complexity 73
Dependencies 21
Dependents 3
Total lines 600
Lines of code 307
Logical lines of code 151
Comment lines 149
Methods 36
Properties 12

Methods 36

Method Rating Maintainability Complexity Lines of code
process_payment()
S
53 5 24
getOldConfiguration()
S
62 5 11
getErrorMessage()
S
62 4 12
saveAdminOptionsInCoreConfig()
S
61 4 12
__construct()
S
48 2 31
pagarme_email_payment_info()
S
65 4 9
isEnabled()
S
60 3 13
validateAlphanumericAndSpacesAndPunctuation()
S
62 3 12
thank_you_page()
S
58 2 16
isGatewayType()
S
68 3 7
getOldData()
S
63 3 10
validateRequired()
S
64 3 10
validateMaxLength()
S
63 2 11
validateMinValue()
S
63 2 11
process_refund()
S
63 2 10
getTitle()
S
71 2 6
append_gateway_form_fields()
S
72 2 6
getLegacyFieldsName()
S
71 2 6
beforeUpdateAdminOptions()
S
68 2 7
beforeAddAdminOptions()
S
68 2 7
field_enabled()
S
60 1 13
hasSubscriptionSupport()
S
82 1 3
isSubscriptionActive()
S
82 1 3
payments_scripts()
S
70 1 6
jsUrl()
S
79 1 3
payment_fields()
S
75 1 4
receipt_page()
S
81 1 3
checkout_transparent()
S
74 1 4
addRefundSupport()
S
82 1 3
getPaymentMethodTitle()
S
77 1 3
init_form_fields()
S
66 1 9
append_form_fields()
S
82 1 3
gateway_form_fields()
S
82 1 3
field_title()
S
65 1 9
getOldTitleName()
S
82 1 3
addValidationError()
S
76 1 4